from common.base import AbstractBaseModel
from common.base import fields


class OauthGiteeUser(AbstractBaseModel):

    user = fields.ForeignKeyField('models.User', on_delete=fields.CASCADE)
    openid = fields.CharField(max_length=64, index=True)

    class Meta:
        table = 'tb_oauth_gitee'
